package com.rabbitmq.demo.mqcluster;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;

@Slf4j
public class Receiver {

    @RabbitListener(queues = "cluster.queue")
    public void receive(String in){
        log.info("receive msg is :{}",in);
    }
}
